package zhang.lao.pojo.api.resp;


/**
 * 接口错误码
 **/
public enum ApiResultEnum {

    SUCCESS(1, "成功"), 
    JSSON_ERROR(0, "json数据结构不匹配",40002),
   PARAMEERROR(0, "参数不完整",60001),
    MAXSIZEUPLOAD(0, "上传文件太大",90001),
    NORESOURCETOUPDATE(0, "没有资源更新",40005),
    ERR500(0, "系统异常",50001),
    TOKENERR(0, "鉴权失败",40001),
    TOKENTIME(0, "鉴权过期",70002),
    NODATE(0, "没有数据",30001),

    NOFINDMACHINE(0, "没有找到相应农机",30003),
    NOFINDMACHINETOOL(0, "没有找到相应机具",30004),
    WORKNOSTOP(0, "您还有未完成的作业",30005),

    WORKNORUNNING(0, "没有正在进行的工作",30006),
    NOAUTHDATA(0, "没有该数据权限",30007),
    NOWORKLIST(0, "该日期您没有作业信息",30008),
    NOWORKTrace(0, "没有找到轨迹信息",30009),
    NODEVICE(0, "没有找到相应设备",30010),
    PHONECODEERROR(0, "验证码不正确",30002);




    private int code;
    private String message;
    private int errorCode;

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public int getErrorCode() {
        return errorCode;
    }

    public void setErrorCode(int errorCode) {
        this.errorCode = errorCode;
    }

    ApiResultEnum(int code, String message, int errorCode) {
        this.code = code;
        this.message = message;
        this.errorCode = errorCode;
    }

    ApiResultEnum(int code, String message) {
        this.code = code;
        this.message = message;
    }
}
